#include <csignal>
#include <iostream>

class SignalWraper
{
private:
    // 信号处理的全局标志
    volatile sig_atomic_t shutdown_requested = 0;

public:
    SignalWraper(/* args */);
    ~SignalWraper();
    void signalHandler(int signum);
    bool isShutdownRequested() { return (0 == shutdown_requested) ? false : true; }
};
